/*
class User {
    firstName: string;
    lastName: string

    constructor(firstName: string, lastName: string) {
        this.firstName = firstName
        this.lastName = lastName

    }

}


interface Person {
    firstName: string,
    lastName: string
}

function greeter(person: Person) {
    return 'hello' + person.firstName + '' + person.lastName
}

let user = new User('marts', 'ygg');
console.log(greeter(user));


*/
var Person = /** @class */ (function () {
    function Person(name) {
        this.name = name;
    }
    Person.prototype.getName = function () {
        console.log(this.name, Person.age);
    };
    //类的静态属性，可以直接通过类名.属性来调用
    Person.age = 'ygg';
    return Person;
}());
//修改静态属性：
var girlMaker = Person;
girlMaker.age = 'hey boy';
var girl = new girlMaker('ygg66');
// let boy:Person = new Person('ygg66');
console.log(girl.getName());
